#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 60/60..."

tc=`java -jar Grades_v2.jar 60 60`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

# passed:1 
# failed:0
# test case 1:60/60 passed


echo "Test Case 2: Testing 100/100..."

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Pass with distinction" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:0
#failed:1
#Test Case 2 100/100 failed

echo "Test Case 3:Testing 70/10."

tc=`java -jar Grades_v2.jar 70 10`

if [ "$tc" = "Component Fail" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:1
#failed:0
# Test Case 3 70/10 passed

echo "Test Case 4:Testing 51/51"

tc=`java -jar Grades_v2.jar 51 51`

if [ "$tc" = "Pass" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:0
#failed:1
# Test Case4: 51 51 failed

echo "Test Case 5:Testing 50 50"

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Pass" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:0
#failed:1
# Test Case5: 50 50 failed

